package com.blaze.framework.core.util.constants;

/**
 * @author created by Zhou Zongbo on 2025/5/26.
 */
public class TokenConstants {
    private TokenConstants() {

    }

    /**
     * 接口入参定义了tokenUserId
     */
    public static final String REQUEST_PARAM_TOKEN_USER_ID = "tokenUserId";

    /**
     * header 中获取用户id
     */
    public static final String TOKEN_HEADER_USER_ID = "X-Auth-Userid";

    /**
     * 请求中的授权信息
     */
    public static final String AUTHORIZATION = "Authorization";

    /**
     * 请求中的授权信息-bearer
     */
    public static final String AUTHORIZATION_BEARER = "Bearer ";

    public static final String TOKEN_USER_ID = "userId";

    public static final String TOKEN_USER_NAME = "username";

    /**
     * 角色信息
     */
    public static final String TOKEN_ROLES = "roles";
    /**
     * token中的权限
     */
    public static final String TOKEN_REALM_ACCESS = "realm_access";

    /**
     * token中的过期时间
     */
    public static final String TOKEN_EXPIRE_TIME = "exp";


}
